package com.wn32.main.demo3;
public class Main {
    public static void main(String[] args) {
        Thread thread1=new Thread(()->{
            Task task1=Task.getInstance();
            System.out.println(Thread.currentThread().getName()+":task1:"+task1);
        },"线程一");

        Thread thread2=new Thread(()->{
            Task task2=Task.getInstance();
            System.out.println(Thread.currentThread().getName()+":task2:"+task2);
        },"线程二");

        thread1.start();
        thread2.start();
    }
}